<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>

<h3><?php echo Yii::t('default', 'Login')?></h3>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
),
)); ?>

  <p class="note">
  <?php echo Yii::t('default', 'field_with', array('{star}'=>'<span class="required">*</span>'))?>
  </p>

  <?php echo $form->errorSummary($model, '', '', array('class' => 'alert alert-error')); ?>

  <div class="row">
  <?php echo $form->labelEx($model,'username'); ?>
  <?php echo $form->textField($model,'username'); ?>
  </div>

  <div class="row">
  <?php echo $form->labelEx($model,'password'); ?>
  <?php echo $form->passwordField($model,'password'); ?>
  </div>

  <div class="row rememberMe">
  <?php echo $form->checkBox($model,'rememberMe'); ?>
  <?php echo $form->label($model,'rememberMe'); ?>
  </div>

  <div class="row buttons">
  <?php echo CHtml::submitButton('Login'); ?>
  </div>

  <?php $this->endWidget(); ?>
</div>
<!-- form -->
